package com.xbongbong.pro.businessdata.pojo.dto;

import com.xbongbong.paas.pojo.dto.FormDataAddGetDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * @author feng.zheng
 * @version v1.0
 * @date 2019/2/12 16:15
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class WorkReportAddGetDTO extends FormDataAddGetDTO {

    private static final long serialVersionUID = -5493284038824017740L;
    /**
     * 报告类型，日报，周报，月报
     */
    @NotNull(message = "{dto.msg.workReportAddGet.type.NotNull}")
    @DecimalMin(value = "1", message = "{dto.msg.workReportAddGet.type.DecimalMin}")
    @DecimalMax(value = "3", message = "{dto.msg.workReportAddGet.type.DecimalMax}")
    private Integer type;

    /**
     * 工作报告开始日期
     */
    private String reportStartDate;
}
